import request from '@/utils/request'

// 提现申请
export function apply(data) {
  return request({
    url: '/system/withdrawal/apply',
    method: 'post',
    data: data
  })
}

// 提现明细列表（分页）
export function withdrawalDetailList(query) {
  return request({
    url: '/system/withdrawal/pageList',
    method: 'get',
    params: query,
    loading: true
  })
}

// 提现申请
export function applyUpdate(data) {
  return request({
    url: '/system/withdrawal/applyEdit',
    method: 'post',
    data: data
  })
}
